/* motor.h */
#ifndef __MOTOR_H__
#define __MOTOR_H__

#include "board_init.h"

typedef enum
{
    motor_direction_stop = 0u,
    motor_direction_forward,
    motor_direction_backward,
} motor_direction_t;

void motor_init(void);
void motor_prepare_move(uint32_t id, motor_direction_t dir);
void motor_update_all(void);
void motor_set_speed(uint32_t speed);
uint32_t motor_get_speed(void);

#endif /* __MOTOR_H__ */

